<template>
	<view class="indexSwiper">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular>
			<swiper-item  @tap="toShop"  v-for="(item,index) in dataList" :key="index">
				<view class="swiper-item">
					<image class="img_item" :src="`http://192.168.0.103:3000/`+item.imgPath" mode="widthFix"></image>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		name:"indexswiper",
		props:{
			dataList:{
				type:Array
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>
/deep/	uni-swiper .uni-swiper-dots-horizontal{
	bottom: 40rpx;
}
	swiper{
		width: 100%;
		height: 300rpx;
	}
	.img_item{
		width: 100%;
		height: 300rpx;
	}

</style>